package com.zyh.kaoshi;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Test8 {
    public static void main(String[] args) throws ParseException {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入年龄：");
        String age = input.nextLine();
        int iAge = Integer.parseInt(age);
        System.out.println("iAge = " + iAge);
        System.out.println("请输入分数：");
        String sScore = input.nextLine();
        double dScore = Double.parseDouble(sScore);
        System.out.println("dScore = " + dScore);
        System.out.println("请输入入学时间：");
        String time = input.nextLine();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        Date parse = sdf.parse(time);
        System.out.println("parse = " + parse);
        /*String format = sdf.format(parse);
        System.out.println("format = " + format);*/
    }
}
